/* Generic table styling with light/dark theme support */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
  line-height: 1.4;
}

th,
td {
  padding: 0.75rem;
  text-align: right;
  border-bottom: 1px solid var(--border-color);
}

th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8em;
  color: var(--text-muted);
  background-color: var(--bg-secondary);
}

tr:hover {
  background-color: var(--bg-hover);
}

/* td:first-child,
th:first-child {
    text-align: left;
} */

/* Dark mode specific styles */
:root[data-theme="dark"] table {
  --bg-secondary: rgba(255, 255, 255, 0.05);
  --bg-hover: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.1);
  --text-muted: rgba(255, 255, 255, 0.7);
}

/* Light mode specific styles */
:root[data-theme="light"] table {
  --bg-secondary: rgba(0, 0, 0, 0.02);
  --bg-hover: rgba(0, 0, 0, 0.01);
  --border-color: rgba(0, 0, 0, 0.1);
  --text-muted: rgba(0, 0, 0, 0.6);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  th,
  td {
    padding: 0.5rem;
    font-size: 0.85em;
  }
}

/* Info row */

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .label {
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 100px;
}

.info-row .value {
  font-weight: 600;
  flex: 1;
  text-align: right;
  word-break: break-all;
}

.info-row .value.address {
  font-family: monospace;
  font-size: 0.9rem;
  opacity: 0.9;
}

.feature-card h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

@media (max-width: 576px) {
  .info-row {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }

  .info-row .value {
    text-align: left;
    width: 100%;
  }
}

/* Forms */

.signature-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 10px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  /* margin-bottom: 8px; */
  font-weight: 500;
  color: var(--text-primary-dark);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
}

.input-wrapper input,
.input-wrapper textarea {
  flex: 1;
  border: none;
  background: none;
  color: inherit;
  padding-right: 8px;
  width: 100%;
  min-width: 0;
  font-size: 1.2em;
  font-family: inherit;
  resize: vertical;
}

.input-wrapper input[type="number"] {
  text-align: right;
  padding-right: 8px;
}

.input-wrapper input::-webkit-outer-spin-button,
.input-wrapper input::-webkit-inner-spin-button {
  margin-left: 8px;
}

.input-wrapper input[readonly] {
  background: none;
}

.input-wrapper input:focus {
  outline: none;
}

.input-wrapper .unit {
  white-space: nowrap;
}

.input-info {
  font-size: 0.7em;
  opacity: 0.7;
}

.datetime-wrapper {
  position: relative;
}

.calendar-button {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.calendar-button:hover {
  background: rgba(128, 128, 128, 0.1);
}

.calendar-button .material-icons {
  font-size: 20px;
}

input.no-calendar-icon::-webkit-calendar-picker-indicator {
  display: none;
}

.button-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .signature-form {
    padding: 0;
  }

  .button-group {
    flex-direction: column;
    gap: 8px;
  }
}
